package com.shekhar.paas.story;

import com.shekhar.paas.domain.Story;

import uk.ac.shef.wit.simmetrics.similaritymetrics.Levenshtein;

public class LevenshteinSimilarityScorer implements SimilarityScorer {
    
    private Levenshtein levenshtein = new Levenshtein();

    @Override
    public float score(Story one, Story two) {
        return levenshtein.getSimilarity(one.getTitle(), two.getTitle());
    }

}
